//
//  AppMacro.h
//  ZuLinProject
//
//  Created by ypj on 2021/12/5.
//

#ifndef AppMacro_h
#define AppMacro_h
//获取当前版本号
#define infoDictionary                   [[NSBundle mainBundle] infoDictionary]
#define app_Version                      [infoDictionary objectForKey:@"CFBundleShortVersionString"]


#define USER_DEFAULT_KEY_MEMBER_ID          @"member_id"
#define USER_DEFAULT_KEY_MEMBER_ACCOUNT     @"member_ACCOUNT"     //to_account
#define USER_DEFAULT_KEY_MEMBER_PHONE       @"member_phone"
#define USER_DEFAULT_KEY_MEMBER_TOKEN       @"member_token"
#define USER_DEFAULT_KEY_MEMBER_IsLogin     @"isLogin"
#define USER_DEFAULT_HOST_URL               @"USER_DEFAULT_HOST_URL"   //图片前缀

#define COMPANY_ROLE_NAME                   @"COMPANY_ROLE_NAME"
#define COMPANY_ROLE_ID                     @"COMPANY_ROLE_ID"
#define  EduitString      @"enter_admin"    //是否是超管
#define  EduitString_key      @"EduitString"     //判断是否是超管的key

// 用户id
#define U_Id                    @"user_id"
// 用户聊天token  key
#define U_Im_Token              @"user_im_token"
// 用户真实姓名  key
#define U_Name                  @"user_nmae"
// 用户头像  key
#define U_HImage                @"user_headImage"
// 用户手机  key
#define U_Phone                 @"user_phone"

#define USER_ID                 [[MSStorageUtils shareInstance] userDefaultGet:U_Id]
#define USER_IM_TOKEN           [[MSStorageUtils shareInstance] userDefaultGet:U_Im_Token]
#define USER_REAL_NAME          [[MSStorageUtils shareInstance] userDefaultGet:U_Name]
#define USER_HEAD_IMAGE         [[MSStorageUtils shareInstance] userDefaultGet:U_HImage]
#define USER_PHONE              [[MSStorageUtils shareInstance] userDefaultGet:U_Phone]


// 是否登录
#define userIsLogin ([YLUserMgr fetchUser].authorization.length > 0 && [NSString stringWithFormat:@"%@",[YLUserMgr fetchUser].companyId].length > 0 && [YLUserMgr fetchUser].realName.length > 0)
// 极光推送
#define APPKEY_JPUSH  @"8bb7656b192fa40eedb73afa"
//融云
#if DEBUG
//#define RongIM_APPID                    @"cpj2xarlcmbpn"
#define RongIM_APPID                    @"pgyu6atqp2lgu"
#define RongIM_RECRET                   @"YokSR2vGFaA"
#else
#define RongIM_APPID                    @"pgyu6atqp2lgu"
#define RongIM_RECRET                   @"vvCeuSz8Ojy"
#endif


//友盟分享
#define U_SHARE_APPKEY                  @"62d557b405844627b5f0e3fb"

//微信登录
#define WX_APPID                        @"wxc317d2342dd39319"
#define WX_AppSecret                    @"e55bd530567a017edfed7350d82e06cb"

//QQ
#define QQ_APPID                        @"1112132958"
#define QQ_APPKEY                       @"71f3cac9c0850b0ebacb6225288db9cf"

#endif /* AppMacro_h */
